<%@ page language="java" contentType="text/html; charset=windows-31j"
    pageEncoding="windows-31j"%>
<%@ page import="com.tomato.dao.*"%>
<%@ page import="com.tomato.bean.*"%>
<%@ page import="com.tomato.servlet.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j">
</head>
<body>
<%
	Long id = Long.parseLong(request.getParameter("id"));
	//Long id = Long.parseLong("8001");
	Ebook ebook = EbookDao.getInstance().getById(id);	
	int count =+ ebook.getCount();
	Ebook ebooks = new Ebook(id, count);
	EbookDao.getInstance().countUpdate(ebooks);
%>
</body>
</html>